package com.east.spark.parttern.strategy;

public class Client {

	/**
	 * @param args
	 * @throws Exception
	 *             策略模式
	 */
	public static void main(String[] args) throws Exception {
		QueryUtil query = new QueryUtil();
		query.findUserInfo(new String[] { "Tom", "Jim", "Anna" }, new Strategy1());
		query.findUserInfo(new String[] { "Jac", "Joe", "Rose" }, new Strategy2());
	}

}
